<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="/front/css/common.css"/>
		<link rel="stylesheet" type="text/css" href="/front/css/register.css"/>
		<script src="/front/js/jquery.js"></script>
	</head>
	<body style="background:#f9f9f9;">
		<!--顶部开始-->
		<header>
			<div id="reg-header">
				<div class="reg-header-middle">
					<div class="reg-header-left">
						<i></i>
						<span class="reg-shsy">双辉旅程网</span>
						<span class="wel-reg">收银台</span>
					</div>
				</div>
			</div>
		</header>
		<!--顶部结束-->
		<!--内容表单注册部分开始-->
		<article>
			<div id="reg-form-box">
				<div class="order">
					<div class="o-left">
						<h3 class="o-title">请您及时付款，以便订单尽快处理！ 订单号：{$post_order_info.number} </h3>
						<p class="o-tips"></p>
					</div>
					<div class="o-right">
						<div class="o-price">
							<em>应付金额</em>
							<strong>{$post_order_info.total_amount}</strong>
							<em>元</em>
						</div>
						<div class="o-detail">
							<a href="##">查看详情</a>
						</div>
					</div>
					<div class="cb"></div>
					<div class="o-list">
						<div class="o-list-info">营地名称：<span>{php} echo model('Camps')->where('id',$post_order_info['camp_id'])->value('name');{/php}</span>房车名称：<span>{php} echo model('CaravanInfos')->where('id',$post_order_info['caravan_id'])->value('name');{/php}</span>入住时间：<span>{$post_order_info.take_car_date}</span>离开时间：{$post_order_info.leave_car_date}</div>
						{if $post_order_info['source'] ===1}
						<div class="o-list-info">使用费：<span>{$post_order_info.total_intergral}币</span>&nbsp;&nbsp;&nbsp;&nbsp;押金：<span>￥{$post_order_info.deposit}元</span></div>
						{else/}
						<div class="o-list-info">使用费：<span>{$post_order_info.total_money}元</span>&nbsp;&nbsp;&nbsp;&nbsp;押金：<span>￥{$post_order_info.deposit}元</span></div>
						{/if}
						{if !empty($post_order_info['contact_name'])}
						<div class="o-list-info">联系人：<span>{$post_order_info.contact_name}</span>&nbsp;&nbsp;&nbsp;&nbsp;手机号码：<span>{$post_order_info.contact_phone}</span>&nbsp;&nbsp;&nbsp;&nbsp;邮箱：<span>{$post_order_info.contact_email}</span></div>
						{else/}
						{volist name='contacts' id='vo'}
						<div class="o-list-info">联系人：<span>{$vo.name}</span>&nbsp;&nbsp;&nbsp;&nbsp;手机号码：<span>{$vo.phone}</span>&nbsp;&nbsp;&nbsp;&nbsp;邮箱：<span>{$vo.email}</span></div>
						{/volist}
						{/if}
					</div>
					<!-- 显示订单详情start -->
					<script type="text/javascript">
						$(function(){
							$(".order .o-right .o-detail a").click(function(){
								$(".o-list").toggle();
							})
						})
					</script>
					<!-- 显示订单详情end -->
				</div>
				<div class="payment">
					<div class="paymentbox">
						<div><img src="http://wx.shsytour.cn/qrcodes?data={$data}" width="300" alt="微信支付"></div>
						<span>请使用微信扫一扫<br>扫描二维码支付</span>
					</div>
				</div>
			</div>
		</article>
		<!--内容表单注册部分结束-->
		<!--公共底部开始-->
		<!--公共底部开始-->
		<script type="text/javascript">
			function func()
			 {
			 	$.ajax({
	            		type:"get",
	            		url:"/wxpay/checkpaysus",
	            		data:{'number':'{$post_order_info.number}'},
	            		dataType:'json',
	            		success: function(data) {
							  if (data==1) {
							  	window.location.href="{:url("/order/orderlist",'','','user')}"
							  }
						}
		            });	  
			  }
			//是每间隔1-5秒钟就重复一次
			setInterval("func()",(Math.random()*1000)+4000);
		</script>	
		<!--公共底部结束-->
	</body>
</html>
